home *** CD-ROM | disk | FTP | other *** search
- //******************************************************************'
- //* *'
- //* TurboCAD for Windows *'
- //* Copyright (c) 1993 - 2004 *'
- //* International Microcomputer Software, Inc. *'
- //* (IMSI) *'
- //* All rights reserved. *'
- //* *'
- //******************************************************************'
- #pragma once
- //#include "StdAfx.h"
- //#include "TcEngine.h"
- //using namespace Interop::IMSIGX ;
- #include "tcengine.h"
- enum ActiveTool
- {
- iSelectTool = 0,
- iAddLineSingleTool = 1,
- iAddCircleCenterAndPoint = 2
- };
-
- namespace TcGeometryVC_Net
- {
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
-
- /// <summary>
- /// Summary for Form1
- ///
- /// WARNING: If you change the name of this class, you will need to change the
- /// 'Resource File Name' property for the managed resource compiler tool
- /// associated with all .resx files this class depends on. Otherwise,
- /// the designers will not be able to interact properly with localized
- /// resources associated with this form.
- /// </summary>
- public __gc class Form1 : public System::Windows::Forms::Form
- {
- public:
- Form1(void)
- {
- InitializeComponent();
- m_tcEngine = new TcEngine();
- pGraphics = picView->CreateGraphics ();
- pGraphics->CompositingQuality = System::Drawing::Drawing2D::CompositingQuality::HighQuality ;
- pPen = new Pen(System::Drawing::Color::Blue ,1);
- EnableButtons(false);
- firstPointX = firstPointY = -1;
- previousMoveX = previousMoveY = -1;
- m_bDrag = false;
- m_iActiveTool = iSelectTool;
- sTitle = "TCGeometry sample application !";
- this->Text = sTitle;
- }
-
- protected:
- void Dispose(Boolean disposing)
- {
- if (disposing && components)
- {
- components->Dispose();
- }
- __super::Dispose(disposing);
- }
- private: System::Windows::Forms::PictureBox * picView;
- private: System::Windows::Forms::StatusBar * statusBar1;
- private: System::Windows::Forms::GroupBox * groupBox1;
- private: System::Windows::Forms::GroupBox * groupBox2;
- private: System::Windows::Forms::Button * cmCreateTCApp;
- private: System::Windows::Forms::Button * cmNewDrawing;
- private: System::Windows::Forms::Button * cmCloseDrawing;
- private: System::Windows::Forms::Button * cmZoomIn;
- private: System::Windows::Forms::Button * cmZoomOut;
- private: System::Windows::Forms::Button * cmZoomExtents;
- private: System::Windows::Forms::Button * cmCreateLine;
- private: System::Windows::Forms::Button * cmCreateCircle;
- private: System::Windows::Forms::Button * cmSelect;
- public private: System::Windows::Forms::Label * label3;
- public private: System::Windows::Forms::Label * label2;
- public private: System::Windows::Forms::Label * label1;
- public private: System::Windows::Forms::TreeView * propsPalette;
-
-
-
-
-
-
-
-
- private:
- /// <summary>
- /// Required designer variable.
- /// </summary>
- System::ComponentModel::Container * components;
-
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- void InitializeComponent(void)
- {
- this->picView = new System::Windows::Forms::PictureBox();
- this->statusBar1 = new System::Windows::Forms::StatusBar();
- this->groupBox1 = new System::Windows::Forms::GroupBox();
- this->cmCreateTCApp = new System::Windows::Forms::Button();
- this->groupBox2 = new System::Windows::Forms::GroupBox();
- this->cmNewDrawing = new System::Windows::Forms::Button();
- this->cmCloseDrawing = new System::Windows::Forms::Button();
- this->cmZoomIn = new System::Windows::Forms::Button();
- this->cmZoomOut = new System::Windows::Forms::Button();
- this->cmZoomExtents = new System::Windows::Forms::Button();
- this->cmCreateLine = new System::Windows::Forms::Button();
- this->cmCreateCircle = new System::Windows::Forms::Button();
- this->cmSelect = new System::Windows::Forms::Button();
- this->label3 = new System::Windows::Forms::Label();
- this->label2 = new System::Windows::Forms::Label();
- this->label1 = new System::Windows::Forms::Label();
- this->propsPalette = new System::Windows::Forms::TreeView();
- this->groupBox1->SuspendLayout();
- this->groupBox2->SuspendLayout();
- this->SuspendLayout();
- //
- // picView
- //
- this->picView->BorderStyle = System::Windows::Forms::BorderStyle::FixedSingle;
- this->picView->Location = System::Drawing::Point(0, 184);
- this->picView->Name = S"picView";
- this->picView->Size = System::Drawing::Size(624, 408);
- this->picView->TabIndex = 0;
- this->picView->TabStop = false;
- this->picView->Click += new System::EventHandler(this, picView_Click);
- this->picView->MouseMove += new System::Windows::Forms::MouseEventHandler(this, picView_MouseMove);
- this->picView->MouseDown += new System::Windows::Forms::MouseEventHandler(this, picView_MouseDown);
- //
- // statusBar1
- //
- this->statusBar1->Location = System::Drawing::Point(0, 597);
- this->statusBar1->Name = S"statusBar1";
- this->statusBar1->Size = System::Drawing::Size(896, 16);
- this->statusBar1->TabIndex = 1;
- this->statusBar1->Text = S"statusBar1";
- //
- // groupBox1
- //
- this->groupBox1->Controls->Add(this->cmCreateTCApp);
- this->groupBox1->Location = System::Drawing::Point(16, 8);
- this->groupBox1->Name = S"groupBox1";
- this->groupBox1->Size = System::Drawing::Size(208, 80);
- this->groupBox1->TabIndex = 2;
- this->groupBox1->TabStop = false;
- this->groupBox1->Text = S"Application";
- //
- // cmCreateTCApp
- //
- this->cmCreateTCApp->Location = System::Drawing::Point(16, 32);
- this->cmCreateTCApp->Name = S"cmCreateTCApp";
- this->cmCreateTCApp->Size = System::Drawing::Size(80, 24);
- this->cmCreateTCApp->TabIndex = 3;
- this->cmCreateTCApp->Text = S"Create";
- this->cmCreateTCApp->Click += new System::EventHandler(this, cmCreateTCApp_Click);
- //
- // groupBox2
- //
- this->groupBox2->Controls->Add(this->cmNewDrawing);
- this->groupBox2->Controls->Add(this->cmCloseDrawing);
- this->groupBox2->Location = System::Drawing::Point(248, 8);
- this->groupBox2->Name = S"groupBox2";
- this->groupBox2->Size = System::Drawing::Size(256, 80);
- this->groupBox2->TabIndex = 2;
- this->groupBox2->TabStop = false;
- this->groupBox2->Text = S"Drawing";
- //
- // cmNewDrawing
- //
- this->cmNewDrawing->Location = System::Drawing::Point(16, 32);
- this->cmNewDrawing->Name = S"cmNewDrawing";
- this->cmNewDrawing->Size = System::Drawing::Size(80, 24);
- this->cmNewDrawing->TabIndex = 3;
- this->cmNewDrawing->Text = S"New";
- this->cmNewDrawing->Click += new System::EventHandler(this, cmNewDrawing_Click);
- //
- // cmCloseDrawing
- //
- this->cmCloseDrawing->Location = System::Drawing::Point(160, 32);
- this->cmCloseDrawing->Name = S"cmCloseDrawing";
- this->cmCloseDrawing->Size = System::Drawing::Size(80, 24);
- this->cmCloseDrawing->TabIndex = 3;
- this->cmCloseDrawing->Text = S"Close";
- this->cmCloseDrawing->Click += new System::EventHandler(this, cmCloseDrawing_Click);
- //
- // cmZoomIn
- //
- this->cmZoomIn->Location = System::Drawing::Point(16, 112);
- this->cmZoomIn->Name = S"cmZoomIn";
- this->cmZoomIn->Size = System::Drawing::Size(80, 24);
- this->cmZoomIn->TabIndex = 4;
- this->cmZoomIn->Text = S"Zoom In";
- this->cmZoomIn->Click += new System::EventHandler(this, cmZoomIn_Click);
- //
- // cmZoomOut
- //
- this->cmZoomOut->Location = System::Drawing::Point(104, 112);
- this->cmZoomOut->Name = S"cmZoomOut";
- this->cmZoomOut->Size = System::Drawing::Size(80, 24);
- this->cmZoomOut->TabIndex = 4;
- this->cmZoomOut->Text = S"Zoom Out";
- this->cmZoomOut->Click += new System::EventHandler(this, cmZoomOut_Click);
- //
- // cmZoomExtents
- //
- this->cmZoomExtents->Location = System::Drawing::Point(192, 112);
- this->cmZoomExtents->Name = S"cmZoomExtents";
- this->cmZoomExtents->Size = System::Drawing::Size(88, 24);
- this->cmZoomExtents->TabIndex = 4;
- this->cmZoomExtents->Text = S"Zoom Extents";
- this->cmZoomExtents->Click += new System::EventHandler(this, cmZoomExtents_Click);
- //
- // cmCreateLine
- //
- this->cmCreateLine->Location = System::Drawing::Point(288, 112);
- this->cmCreateLine->Name = S"cmCreateLine";
- this->cmCreateLine->Size = System::Drawing::Size(80, 24);
- this->cmCreateLine->TabIndex = 4;
- this->cmCreateLine->Text = S"Add Line";
- this->cmCreateLine->Click += new System::EventHandler(this, cmCreateLine_Click);
- //
- // cmCreateCircle
- //
- this->cmCreateCircle->Location = System::Drawing::Point(376, 112);
- this->cmCreateCircle->Name = S"cmCreateCircle";
- this->cmCreateCircle->Size = System::Drawing::Size(80, 24);
- this->cmCreateCircle->TabIndex = 4;
- this->cmCreateCircle->Text = S"Add Circle";
- this->cmCreateCircle->Click += new System::EventHandler(this, cmCreateCircle_Click);
- //
- // cmSelect
- //
- this->cmSelect->Location = System::Drawing::Point(464, 112);
- this->cmSelect->Name = S"cmSelect";
- this->cmSelect->Size = System::Drawing::Size(80, 24);
- this->cmSelect->TabIndex = 4;
- this->cmSelect->Text = S"Select";
- this->cmSelect->Click += new System::EventHandler(this, cmSelect_Click);
- //
- // label3
- //
- this->label3->Location = System::Drawing::Point(144, 152);
- this->label3->Name = S"label3";
- this->label3->Size = System::Drawing::Size(208, 23);
- this->label3->TabIndex = 10;
- //
- // label2
- //
- this->label2->Location = System::Drawing::Point(16, 152);
- this->label2->Name = S"label2";
- this->label2->TabIndex = 9;
- this->label2->Text = S"Active Tool :";
- //
- // label1
- //
- this->label1->Location = System::Drawing::Point(624, 152);
- this->label1->Name = S"label1";
- this->label1->Size = System::Drawing::Size(144, 24);
- this->label1->TabIndex = 12;
- this->label1->Text = S"Properties:";
- //
- // propsPalette
- //
- this->propsPalette->ImageIndex = -1;
- this->propsPalette->Location = System::Drawing::Point(624, 184);
- this->propsPalette->Name = S"propsPalette";
- this->propsPalette->SelectedImageIndex = -1;
- this->propsPalette->Size = System::Drawing::Size(264, 408);
- this->propsPalette->TabIndex = 11;
- //
- // Form1
- //
- this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
- this->ClientSize = System::Drawing::Size(896, 613);
- this->Controls->Add(this->label1);
- this->Controls->Add(this->propsPalette);
- this->Controls->Add(this->label3);
- this->Controls->Add(this->label2);
- this->Controls->Add(this->groupBox1);
- this->Controls->Add(this->statusBar1);
- this->Controls->Add(this->picView);
- this->Controls->Add(this->groupBox2);
- this->Controls->Add(this->cmZoomIn);
- this->Controls->Add(this->cmZoomOut);
- this->Controls->Add(this->cmZoomExtents);
- this->Controls->Add(this->cmCreateLine);
- this->Controls->Add(this->cmCreateCircle);
- this->Controls->Add(this->cmSelect);
- this->Name = S"Form1";
- this->Text = S"Form1";
- this->groupBox1->ResumeLayout(false);
- this->groupBox2->ResumeLayout(false);
- this->ResumeLayout(false);
-
- }
-
- private: System::Void cmTest_Click(System::Object * sender, System::EventArgs * e)
- {
- }
-
- //public:
- // IApplicatin* ptcApp;
- private: System::Void cmZoomIn_Click(System::Object * sender, System::EventArgs * e)
- {
- m_tcEngine->Zoom (0.8);
- picView->Refresh ();
- m_tcEngine->m_gxView->Refresh ();
- }
-
- public:
- TcEngine* m_tcEngine;
- Color m_BackgroundColor;
- System::Drawing::Pen* pPen;
- System::Drawing::Pen* pPenBackground;
- int firstPointX;
- int firstPointY;
- int previousMoveX;
- int previousMoveY;
- System::String* sTitle;
- bool m_bDrag;
- ActiveTool m_iActiveTool;
- System::Drawing::Graphics* pGraphics;
-
- private: System::Void cmNewDrawing_Click(System::Object * sender, System::EventArgs * e)
- {
-
- System::String* s;
- m_tcEngine->CreategxDrawing ();
- // System::Object* varVal;
- long lcolor;
- lcolor = RGB(255,255,255);
- m_BackgroundColor = picView->BackColor;
- picView->BackColor = System::Drawing::ColorTranslator::FromWin32 (lcolor);
- pPenBackground = new Pen (picView->BackColor ,1);
- m_tcEngine->CreategxView ((int)picView->Handle);
- m_tcEngine->m_gxView->ZoomToExtents ();
- EnableButtons(true);
- s = sTitle;
- s = s->Insert (s->Length,"--------");
- s = s->Insert (s->Length,m_tcEngine->m_gxDrawing->get_Name ());
- this->Text = s;
- }
-
-
- private: System::Void cmCreateLine_Click(System::Object * sender, System::EventArgs * e)
- {
- m_tcEngine->m_gxDrawing->Graphics->Unselect ();
- m_tcEngine->m_gxView->Refresh ();
- m_iActiveTool = iAddLineSingleTool;
- UpdatePrompt();
- }
-
- public:
-
- void UpdatePrompt(void)
- {
- statusBar1->Text = "";
- switch (m_iActiveTool)
- {
- case iSelectTool :
- {
- statusBar1->Text = "Select Object";
- label3->Text = "Select Tool";
- }
- break;
- case iAddLineSingleTool:
- {
- if (m_bDrag == false)
- {
- statusBar1->Text = "Define the start point of the line";
- label3->Text = "Add Single Line";
- }
- else
- {
- statusBar1->Text = "Define the end point of the line";
- label3->Text = "Add Single Line";
- }
- }
- break;
- case iAddCircleCenterAndPoint:
- {
- if (m_bDrag == false)
- {
- statusBar1->Text = "Define the center point of the circle";
- label3->Text = "Add Circle Center and Point";
- }
- else
- {
- statusBar1->Text = "Define a second point of the circle's circumferences";
- label3->Text = "Add Circle Center and Point";
- }
-
- }
- break;
-
- }
-
- }
-
- void EnableButtons(bool bVal)
- {
- cmCloseDrawing->Enabled = bVal;
- cmZoomIn->Enabled = bVal;
- cmZoomOut->Enabled = bVal;
- cmZoomExtents->Enabled = bVal;
- cmCreateLine->Enabled = bVal;
- cmCreateCircle->Enabled = bVal;
- cmSelect->Enabled = bVal;
- m_iActiveTool = iSelectTool;
- UpdatePrompt();
- }
- private: System::Void cmZoomOut_Click(System::Object * sender, System::EventArgs * e)
- {
- m_tcEngine->Zoom (1.2);
- picView->Refresh ();
- m_tcEngine->m_gxView->Refresh ();
- }
-
- private: System::Void cmZoomExtents_Click(System::Object * sender, System::EventArgs * e)
- {
- if (m_tcEngine->m_gxView != NULL)
- {
- picView->Refresh ();
- m_tcEngine->m_gxView->ZoomToExtents ();
- }
- }
-
- private: System::Void cmCreateCircle_Click(System::Object * sender, System::EventArgs * e)
- {
- m_tcEngine->m_gxDrawing->Graphics->Unselect ();
- m_tcEngine->m_gxView->Refresh ();
- m_iActiveTool = iAddCircleCenterAndPoint;
- UpdatePrompt();
-
- }
-
- private: System::Void cmSelect_Click(System::Object * sender, System::EventArgs * e)
- {
- statusBar1->Text = "Select object";
- m_iActiveTool = iSelectTool ;
- UpdatePrompt();
- FillPropertiesPalette(NULL);
- }
-
- public:
-
- void FillPropertiesPalette(IGraphic* pGraphic)
- {
- ClearPropertiesPalette();
- if (pGraphic == NULL)
- return;
- // fill common info
- TreeNode *pRootNode;
- TreeNode *pchildNode;
-
- Vertices* gxVertices;
- IVertex* gxVertex;
- System::Object* var;
- double vardblVal;
- double radius;
- double xCenter, yCenter, X, Y, Z;
- int id;
- CString grType;
- CString s;
- vardblVal = 0;
- pRootNode = propsPalette->Nodes->Add ("General");
- id = pGraphic->get_ID ();
- s = "GraphicID = ";
- s = s + id.ToString ();
- pRootNode->Nodes->Add (s );
- s.Empty ();
- s = "Type = ";
- grType = pGraphic->get_Type();
- s = s + grType;// + grType..ToString ();
- pRootNode->Nodes->Add (s);
- pRootNode = propsPalette->Nodes->Add ("Geometry Information");
- gxVertices = pGraphic->Vertices;
-
- if (pGraphic->TypeByValue == 2 ) // imsiArc
- {
-
- pchildNode = pRootNode->Nodes->Add ("Center");
- //var = __try_cast<System::Object*>(Convert::ChangeType(__box(0), __typeof(System::Object )));
- var = __box(0);
- gxVertex = gxVertices->get_Item(&var);
- xCenter = gxVertex->X;
- yCenter = gxVertex->Y;
- vardblVal = gxVertex->X ;
- s.Empty ();
- s = vardblVal.ToString();
- pchildNode->Nodes->Add ("X = " + s);
- vardblVal = gxVertex->Y;
- s.Empty ();
- s = vardblVal.ToString();
- pchildNode->Nodes->Add ("Y = " + s);
- pchildNode->Nodes->Add ("Z = 0");
-
- //var = __try_cast<System::Object*>(Convert::ChangeType(__box(1), __typeof(System::Object )));
- var = __box(1);
- gxVertex = gxVertices->get_Item(&var);
- X = gxVertex->X;
- Y = gxVertex->Y;
- radius = (float)System::Math::Sqrt ((xCenter - X)*(xCenter - X) + (yCenter - Y) * (yCenter - Y));
- s.Empty() ;
- s = "Radius ";
- s = s + radius.ToString ();
- pchildNode = pRootNode->Nodes->Add (s);
- }
- else if (pGraphic->get_TypeByValue () == imsiPolyline )
- {
- int n, i;
- n = gxVertices->get_Count ();
- pRootNode = pRootNode->Nodes->Add ("Vertices");
- for (i = 0; i < n; i++)
- {
- //var = __try_cast<System::Object*>(Convert::ChangeType(__box(i), __typeof(System::Object )));
- var = __box(i);
- gxVertex = gxVertices->get_Item(&var);
- s.Empty ();
- s = "V ";
- s = s + var->ToString ();
- pchildNode = pRootNode->Nodes->Add (s);
- X = gxVertex->X;
- Y = gxVertex->Y;
- Z = gxVertex->Z;
- s.Empty();
- s = X.ToString ();
- pchildNode->Nodes->Add ("X = " + s);
- s.Empty();
- s = Y.ToString ();
- pchildNode->Nodes->Add ("Y = " + s);
- s.Empty();
- s = Z.ToString ();
- pchildNode->Nodes->Add ("Z = " + s);
- }
-
- }
- pGraphic->Drawing->Graphics->Unselect ();
- pGraphic->Selected = true;
- m_tcEngine->m_gxView->Refresh ();
- propsPalette->ExpandAll ();
-
- }
-
- void ClearPropertiesPalette(void)
- {
- propsPalette->Nodes->Clear ();
- }
- private: System::Void picView_Click(System::Object * sender, System::EventArgs * e)
- {
-
- }
- private: System::Void picView_MouseDown(System::Object * sender, System::Windows::Forms::MouseEventArgs * e)
- {
- IGraphic* gxGraphic;
- int mouseX = e->X;
- int mouseY = e->Y;
- if (m_tcEngine->m_gxView == NULL)
- return;
- if (e->Button == System::Windows::Forms ::MouseButtons ::Left)
- {
- if (m_iActiveTool != iSelectTool )
- {
- // if firstPointX nad firstPointY equal -1 it means that tool just started and
- // is in first click mode
- if (firstPointY == -1 && firstPointX == -1)
- {
- // store coordinates of first click
- firstPointX = mouseX;
- firstPointY = mouseY;
- // switch to second click mode
- m_bDrag = true;
- UpdatePrompt();
- return;
- }
- }
-
- switch (m_iActiveTool)
- {
- case iSelectTool :
- {
- m_tcEngine->m_gxDrawing->Graphics->Unselect ();
- IGraphic* gxSelectedGraphic = m_tcEngine->SelectGraphic(mouseX, mouseY);
- FillPropertiesPalette(gxSelectedGraphic);
- m_tcEngine->m_gxView->Refresh ();
- }
- break;
-
- case iAddLineSingleTool :
- {
- gxGraphic = m_tcEngine->AddLineSingle (firstPointX,firstPointY, mouseX, mouseY);
- m_bDrag = false;
- firstPointX = -1;
- firstPointY = -1;
- previousMoveX = -1;
- previousMoveY = -1;
- }
- break;
-
- case iAddCircleCenterAndPoint :
- {
- gxGraphic = m_tcEngine->AddCircleCenterAndPoint (firstPointX,firstPointY, mouseX, mouseY);
- m_bDrag = false;
- firstPointX = -1;
- firstPointY = -1;
- previousMoveX = -1;
- previousMoveY = -1;
- }
- break;
-
-
-
- }
- picView->Refresh ();
- m_tcEngine->m_gxView->Refresh ();
- UpdatePrompt();
- return;
- }
-
- }
-
- private: System::Void picView_MouseMove(System::Object * sender, System::Windows::Forms::MouseEventArgs * e)
- {
- // Update the mouse path that is drawn onto the Panel.
- UpdatePrompt();
- if (!m_bDrag)
- return;
-
- int mouseX = e->X;
- int mouseY = e->Y;
- int r = 0;
-
- switch (m_iActiveTool)
- {
- case iAddLineSingleTool:
- {
- if (m_bDrag == true)
- {
- // draw previous state of line with background color to hide it
- pGraphics->DrawLine (pPenBackground,firstPointX,firstPointY,previousMoveX, previousMoveY);
- // draw current staet of line
- pGraphics->DrawLine (pPen,firstPointX,firstPointY,mouseX, mouseY);
- }
- }
- break;
- case iAddCircleCenterAndPoint:
- {
- // calculate radius for previous state of the circle
- r = (float)System::Math::Sqrt ((firstPointX - previousMoveX)*(firstPointX - previousMoveX) + (firstPointY - previousMoveY) * (firstPointY - previousMoveY));
- if (r != 0)
- {
- // hide previous state of circle by draw it with background color
- pGraphics->DrawArc (pPenBackground, firstPointX - r, firstPointY - r , 2*r, 2*r, 0, 360);
- }
- // calculate radius of circle for current state
- r = (float)System::Math::Sqrt ((firstPointX - mouseX)*(firstPointX - mouseX) + (firstPointY - mouseY) * (firstPointY - mouseY));
- if (r != 0)
- {
- // draw current state of the circle
- pGraphics->DrawArc (pPen, firstPointX - r, firstPointY - r , 2*r, 2*r, 0, 360);
- }
- }
- break;
- }
- previousMoveX = mouseX;
- previousMoveY = mouseY;
-
- if (m_tcEngine->m_gxView != NULL)
- {
- m_tcEngine->m_gxView->Refresh ();
- }
- return;
-
- }
-
- private: System::Void cmCloseDrawing_Click(System::Object * sender, System::EventArgs * e)
- {
- System::Object* missing = NULL;
- m_bDrag = false;
- pPenBackground->Dispose ();
- m_tcEngine->m_gxDrawing->Close (&missing, &missing, &missing);
- m_tcEngine->m_gxDrawing = NULL;
- m_tcEngine->m_gxView = NULL;
- EnableButtons(false);
- this->Text = sTitle;
- picView->BackColor = m_BackgroundColor;
- picView->Refresh ();
- statusBar1->Text = "";
-
- }
-
- private: System::Void cmCreateTCApp_Click(System::Object * sender, System::EventArgs * e)
- {
- m_tcEngine->CreategxApp ();
- }
-
- };
- }
-
-
-